<!DOCTYPE html>

<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<p id="demo"></p>
		<script>
			document.getElementById("demo");
			function findMax(a1,a2){
				var max=arguments[0];
				for (var i=0;i<arguments.length;i++) {
					if(arguments[i]>max){
						max=arguments[i]
					}
				}
				return max;
			}
			demo.innerHTML =findMax(1, 123, 500, 115, 44, 88);
		</script>
	</body>
</html>
